﻿<?php

$connect = mysql_connect('localhost', 'tass', '114'); // DB 연결
if ($connect) {
    echo "접속성공<br/>";
    }else {
        echo "접속실패<br/>";
    }

    $db_id=mysql_select_db("tass",$connect);  // DB 선택

    if($db_id) {
        echo "데이터베이스 선택성공<br/>";
        }else {
            echo "데이터베이스 선택실패<br/>";
        }
 //       mysql_query("set names euckr");


        $index = $_REQUEST['index'];
        $korean = $_REQUEST['text_save']; //수정 흠칫,ㅋㅋㅋㅋ taxt

        $index = '2';
        if($korean == null){
            $korean = '저장안됨.';
        }

        $sql = "UPDATE net_eng SET korean_text = '$korean' WHERE seq =$index ;";
$sql = iconv("euc-kr", "utf-8", $sql); 
        //$sql = "insert into $table_name (english_text,korean_text,finish) values ('$str',null,'0');";
        echo $sql;
        mysql_query($sql, $connect);

?>